//
//  MonthViewController.m
//  Nschedule
//
//  Created by 이동민 on 13. 2. 15..
//  Copyright (c) 2013년 이동민. All rights reserved.
//

#import "MonthViewController.h"

@interface MonthViewController ()

@end

@implementation MonthViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete method implementation.
    // Return the number of rows in the section.
    return 2;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    //셀에 사용할 문자열 - 재사용할때 셀을 문자열로 구분
    static NSString *CellIdentifier = @"Cell";
    //재사용 가능한 셀이 있으면 그 셀로 cell을 사용하겠다.
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    //재사용 가능한 셀이 없다면
    if (cell == nil)
    {
        //cell을 직접 생성 하겠다.
        //Subtitle, value1, value2로 선택설정
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    }
    
	cell.textLabel.text =@"이동민,하규태,전해성,홍길동,개똥이,김철수";
    [cell.textLabel setNumberOfLines:2];

    cell.textLabel.font=[UIFont systemFontOfSize:14];
    cell.imageView.image=[UIImage imageNamed:@"IndiPlan.png"];
    
    
    
    // Configure the cell...
    
    return cell;
}



- (void)viewDidLoad
{
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"NavigationBar.png"] forBarMetrics:UIBarMetricsDefault];
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
